package com.hliushi.netty.message;

import lombok.*;

/**
 * @author llhuang10
 * @date 2021/10/23 15:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RpcResponseMessage extends Message {
    private static final long serialVersionUID = -6062228483182656387L;
    /**
     * 返回值
     */
    private Object returnValue;
    /**
     * 异常值
     */
    private Exception exceptionValue;

    private String exceptionMsg;

    @Override
    public int getMessageType() {
        return RPC_MESSAGE_TYPE_RESPONSE;
    }
}
